package com.aidong.activity.entity;

import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import com.aidong.util.ReadPropertiesUtil;

public class Home implements Serializable {
	private static final long serialVersionUID = 1010197176335808345L;
	
	private int recmdId;
	private int recmdType;
	private int appType;
	private int parameter;
	private String url;
	private String recmdUrl;
	private String remark;
	private String memo;
	private String dateTime;
	
	private String storeName;
	private int courseId;
	private String courseName;
	
	private String recmdSite;
	
	public int getRecmdId() {
		return recmdId;
	}
	public void setRecmdId(int recmdId) {
		this.recmdId = recmdId;
	}
	public int getRecmdType() {
		return recmdType;
	}
	public void setRecmdType(int recmdType) {
		this.recmdType = recmdType;
	}
	public int getAppType() {
		return appType;
	}
	public void setAppType(int appType) {
		this.appType = appType;
	}
	public int getParameter() {
		return parameter;
	}
	public void setParameter(int parameter) {
		this.parameter = parameter;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getRecmdUrl() {
		if("shoppEntry".equals(recmdSite)){
			return ReadPropertiesUtil.getSmallImg(recmdUrl);
		}else if("shoppRecommend".equals(recmdSite)){
			return ReadPropertiesUtil.get300Img(recmdUrl);
		}else{
			return  ReadPropertiesUtil.getIMGREAD(recmdUrl);
		}
	}
	public void setRecmdUrl(String recmdUrl) {
		this.recmdUrl = recmdUrl;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getDateTime() {
		return dateTime;
	}
	public void setDateTime(String dateTime) {
		
		this.dateTime = dateTime;
	}
	public String getStoreName() {
		return storeName;
	}
	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}
	public int getCourseId() {
		return courseId;
	}
	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}
	public String getCourseName() {
		return courseName;
	}
	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}
	public String getRecmdSite() {
		return recmdSite;
	}
	public void setRecmdSite(String recmdSite) {
		this.recmdSite = recmdSite;
	}
	
	
}
